﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;

using _1Dot9MasterData;
using _1Dot9MasterTransactions;
using _1Dot9MasterDac;

namespace _1Dot9MasterBiz
{
    public class WorkBiz : MasterBizBase
    {
        #region work item 을 조회한다.
        /// <summary>
        ///  work item 을 조회한다.
        /// </summary>        
        [Transaction(TransactionOption.Suppress)]
        public DataSet GetWorkItem(Hashtable htParams)
        {
            using (WorkDac workDac = new WorkDac())
            {
                return workDac.WorkItemSelect(htParams);
            }
        }
        #endregion

        #region work item 리스트를 얻어온다. 
        /// <summary>
        ///  work item 리스트를 얻어온다.
        /// </summary>        
        [Transaction(TransactionOption.Suppress)]
        public DataSet GetWorkItemList(Hashtable htParams)
        {
            using (WorkDac workDac = new WorkDac())
            {
                return workDac.WorkItemList(htParams);
            }
        }
        #endregion

        #region work item 을 저장한다. :SetWorkItem()
        /// <summary>
        /// work item 을 저장한다.
        /// </summary>
        [Transaction(TransactionOption.Suppress)]
        public int SetWorkItem(Hashtable htParams)
        {
            using (WorkDac workDac = new WorkDac())
            {
                return workDac.WorkItemInsert(htParams);
            }
        }
        #endregion
    }
}
